button: Improve accessible setup
authorMatthias Clasen <mclasen@redhat.com>
Sat, 10 Jun 2023 14:25:02 +0000 (10:25 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 10 Jun 2023 15:29:12 +0000 (11:29 -0400)
commitcf30a4f30454dce47148b17eedd60dcb231ad768
tree2e12bb3d4928d69adbb2cc662aa91d61f30e9b42
parent5e07710f5a414d76a9044f742c5071342924656b
button: Improve accessible setup

With the current approach, we get duplicate labels
in the accessible name: _Cancel Cancel. Change things
around to always set the labelled-by accessible relation
if we have a label, and not the label accessible property.
gtk/gtkbutton.c
gtk/gtkfontchooserdialog.c
gtk/ui/gtkfontchooserwidget.ui
testsuite/a11y/button.c